package com.ukayunnuo.tdengine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ukayunnuo.domain.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yunnuo
 * @since 1.0.0
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    UserInfo getByUserId(@Param("id") Long id);

    List<UserInfo> selectByDays(@Param("days") Integer days);

    Integer insertData(@Param("userInfo") UserInfo userInfo, @Param("tbname") String tbname, @Param("tenant_id") String tenant_id);
}
